package com.example.soa_exp2.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.sql.Date;

@Data
@TableName("record")
public class BorrowRecord {
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "用户ID不能为空")
    @JsonIgnore
    private String recordid;

    private String userid;

    private String equipmentid;

    private Date borrowdate;

    private Date expectedreturndate;

    private Date returndate;

    private int status;
}
